<template>
  <div class="item-box-container">
    <div class="title-warp">
      <i class="tag-line"></i>
      <span>{{ title }}</span>
    </div>
    <div class="item-content">
      <slot name="content"> </slot>
    </div>
  </div>
</template>

<script setup>
import { defineProps } from 'vue'
defineProps({
  title: {
    type: String,
    default: ''
  }
  // icon: {
  //   type: String,
  //   default: ''
  // }
})
</script>

<style lang="scss" scoped>
.item-box-container {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 1);
  border-radius: 5px;
  .title-warp {
    width: 100%;
    height: 21px;
    padding: 20px 24px 0px 24px;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #2f3444;
    display: flex;
    align-items: center;
    .tag-line {
      width: 5px;
      height: 18px;
      background: #2a5eff;
      border-radius: 3px;
      margin-right: 6px;
    }
  }
  .item-content {
    width: 100%;
    height: calc(100% - 41px);
  }
}
</style>
